home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 February: Tool Chest / Dev.CD Feb 00 TC.toast / pc / tool chest / macapp / install macapp r13u4 / Apple Frameworks / MacApp / Examples / Skeleton / UTrackerSkeleton.h / UTrackerSkeleton.h
Encoding:
Text File  |  1998-10-13  |  1.8 KB  |  72 lines  |  [TEXT/CWIE]

  1. // UTrackerSkeleton.h
  2. // Copyright © 1991-98 by Apple Computer, Inc. All rights reserved. 
  3.  
  4. /*
  5.     Change History:
  6.         04/10/98    Include UTracker.h.
  7. */
  8.  
  9. #ifndef __UTRACKERSKELETON__
  10. #define __UTRACKERSKELETON__
  11.  
  12. #ifndef __UCOMMAND__
  13. #include "UCommand.h"
  14. #endif
  15.  
  16. #ifndef __UTRACKER__
  17. #include "UTracker.h"
  18. #endif
  19.  
  20. //----------------------------------------------------------------------------------------
  21. // Forward and external classes
  22. //----------------------------------------------------------------------------------------
  23.  
  24. class TDocumentSkeleton;        
  25.  
  26. //----------------------------------------------------------------------------------------
  27. // TTrackerSkeleton
  28. //----------------------------------------------------------------------------------------
  29.  
  30. class TTrackerSkeleton: public TTracker
  31. {
  32.   public:
  33.     TTrackerSkeleton(TDocumentSkeleton* itsDocumentSkeleton = NULL,
  34.                                   TView* itsView = NULL,
  35.                                   TScroller* itsScroller = NULL,
  36.                                   const CViewPoint& itsMouse = gZeroVPt); 
  37.         // Constructor
  38.     
  39.     virtual ~TTrackerSkeleton();
  40.         // Destructor
  41.         
  42.     // Commands            
  43.     virtual void DoIt(); // Override
  44.         // Comment Required
  45.         
  46.     virtual void UndoIt(); // Override
  47.         // Comment Required
  48.         
  49.     virtual void RedoIt(); // Override
  50.     
  51.     // Tracking
  52.     virtual void TrackFeedback(TrackPhase aTrackPhase,
  53.                                 const CViewPoint& anchorPoint,
  54.                                 const CViewPoint& previousPoint,
  55.                                 const CViewPoint& nextPoint,
  56.                                 bool mouseDidMove,
  57.                                 bool turnItOn); // Override
  58.         // Comment Required
  59.         
  60.     virtual TTracker* TrackMouse(TrackPhase aTrackPhase,
  61.                                  CViewPoint& anchorPoint,
  62.                                  CViewPoint& previousPoint,
  63.                                  CViewPoint& nextPoint,
  64.                                  bool mouseDidMove); // Override
  65.         // Comment Required
  66.         
  67.   protected:
  68.     TDocumentSkeleton* fDocumentSkeleton;
  69. };
  70.  
  71. #endif
  72.